package main

import (
	"github.com/gin-gonic/gin"
	"io/ioutil"
	"iot-base/common/logger"
)

func querydata(c *gin.Context) {
	res, _ := ioutil.ReadAll(c.Request.Body)
	logger.Log.Info(string(res))
	queryres <- string(res)
	c.Writer.Write([]byte("OK"))
}
